#define _CRT_SECURE_NO_WARNINGS 1

#include "BTree.h"

int main()
{
	BTNode* root = CreatBinaryTree();
	BTNode* coot = CreatBinaryTree();

	printf("%d ", BTreeLevelKSize(root, 3));
	printf("%d ", BTreeSize(root));
	printf("%d ", BTreeLeafSize(root));
	printf("%d ", BTreeHeight(root));
	printf("%d\n", isSameTree(root, coot));

	printf("%p\n", BTreeFind(root, 5));

	printf("%d ", isUnivalTree(root));
	printf("%d\n", _isSymmetric(root));

	int size = 0;
	BTDataType* array = _preorderTraversal(root, &size);

	for (int i = 0; i < size; i++)
	{
		printf("%d ", array[i]);
	}

	return 0;
}